package cn.bsuc.crm.mapper;

import cn.bsuc.crm.dto.CustomerseverDTO;
import cn.bsuc.crm.entity.CustomerServe;
import cn.bsuc.crm.vo.CustomerServeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhuoyuan
 * @since 2022-10-03
 */
public interface CustomerServeMapper extends BaseMapper<CustomerServe> {
    //动态模糊查询
    public Page<CustomerServeVO> selectByParams(@Param("page") Page<CustomerServeVO> page, @Param("customerseverDTO")CustomerseverDTO customerseverDTO) throws DataAccessException;

    //添加
    int insertAdd(CustomerServe customerServe);

    List<CustomerServe> selectchuli(String username);
}
